Mac OS 8.5 Technote: Part V

Copyright 1998 by Apple Computer, Inc. All Rights Reserved.

[Previous section] [Mac OS 8.5 Contents Page] [Next section]

Internet Location Files and Clipping Files

  • Finder supports enhanced text clipping naming. Text clipping file names are now generated using the first few characters in the text supplied as the text clipping (truncated using the ellipse character as appropriate). Previous Finders would name text clippings as 'text clipping', 'text clipping 1', and so on. For example, the new Finder may name a text clipping generated using this sentence as "For example, the...". This new facility supplements the clipping file naming facilities introduced with MacOS 8.0 (see the "Controlling Clipping File Names" section of Technote TN1102, "Mac OS 8" for more information).

  • Both Internet location files and clipping files are created by the Finder when it receives a Drag-and-Drop command. The type of file created depends on the contents of the drag as described below.

  • Clipping files created by the Finder will have one of the types listed in Table 2. All clipping files have a creator type of kClippingCreator ('drag').


Table 2. Clipping file types created by Finder.

Constant Name

OSType

Description

kClippingPictureType

'clpp'

a QuickDraw picture ('PICT')

kClippingTextType

'clpt'

contains ASCII text ('TEXT')

kClippingSoundType

'clps'

contains a sound resource of type 'snd '

kClippingUnknownType

'clpu'

unknown data


Finder will create an Internet location document when it receives a drag containing an Universal Resource Locator (URL). A drag containing an URL will be noticed by the Finder in one of two ways:

  • If the drag contains data of flavor type 'url ', then the data will be treated as an URL.

  • If the drag contains data of flavor type 'TEXT', then Finder will examine the text data attached to the flavor and determine if it is an URL.

When it finds URL information, Finder will create an Internet location file assigning the file type according to the URL type. Table 3 lists the file types the Finder will assign to Internet location files. Internet location files created by the Finder will have a creator type of kInternetLocationCreator ('drag').



Table 3. Internet location file types assigned by the Finder.

Constant Name

OSType

Description

kInternetLocationHTTP

'ilht'

an http address

kInternetLocationFTP

'ilft'

a ftp server address

kInternetLocationFile

'ilfi'

a file on disk

kInternetLocationMail

'ilma'

an email address

kInternetLocationNNTP

'ilnw'

news group or article

kInternetLocationAFP

'ilaf'

Apple Filing Protocol address

kInternetLocationAppleTalk

'ilat'

an AppleTalk address

kInternetLocationGeneric

'ilge'

some other resource


COMPATIBILITY NOTE
Specific file formats and contents of both clipping files and Internet location files are undocumented and subject to change without notice.

[Previous section] [Mac OS 8.5 Contents Page] [Next section]

To contact us, please use the Contact Us page.